const initialState = {
    name: '名字'
}

export default function userReducer(state = initialState, action) {
    const { type, payload } = action;
    switch (type) {

        case 'name':
            return { ...state, ...payload }

        default:
            return state
    }
}
